﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:MoreTerra" x:Class="MoreTerra.MainWindow"
        Title="More Terra" Height="399" Width="641">
    <Window.Resources>

    </Window.Resources>
    <Grid>
        <DataGrid x:Name="gridWorldFiles" ItemsSource="{Binding}" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Height="199" Width="596" AutoGenerateColumns="False">
            <DataGrid.Columns>

                <DataGridTextColumn Header="File Name"  Binding="{Binding FileName}"/>
                <DataGridTextColumn Header="Map Name" Binding="{Binding MapName}" />
                <DataGridTextColumn Header="Map Version" Binding="{Binding VersionNumber}">
                    <DataGridTextColumn.ElementStyle>
                        <Style TargetType="{x:Type TextBlock}">
                            <Style.Triggers>
                                <Trigger Property="Text" Value="94">
                                    <Setter Property="Background" Value="LightGreen"/>
                                </Trigger>
                            </Style.Triggers>
                        </Style>
                    </DataGridTextColumn.ElementStyle>
                </DataGridTextColumn>
            </DataGrid.Columns>

        </DataGrid>
    </Grid>
</Window>
